var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: []
  },
  backto: function (e) {
    wx.navigateBack({})
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let that = this;
    that.setData({
      shop_id: options.shop_id,
      wid: options.wid
    })
    app.ihttpGet('https://www.58zltc.com/api.php/Withdraw/getlist/shop_id/' + that.data.shop_id + '/wid/' + that.data.wid, function (res) {
      console.log(res)
      if(res.data.err_code == 400){
        wx.showModal({
          title: '系统提示',
          content: res.data.list,
        })
      }
      that.setData({
        list: res.data.list
      })
    })
  },
})